// TODO remove stdio
#include <stdio.h>

#include "../util.h"
#include "encrypt.h"
#include "../encrypt.h"

action_encrypt_result action_encrypt(
    const char* password,
    const char* exponent,
    const char* modulus
) {
    action_encrypt_result result = {
        ACTION_ENCRYPTED_SUCCESSFULLY,
        NULL
    };
    
    result.encrypted_string = encrypt_password(password, exponent, modulus);
    if (result.encrypted_string == NULL) {
        result.status = ACTION_ENCRYPTING_PARSE_FAILURE;
    }
    return result;
}
